package org.example.gradleadmin.mapper;

import gradle.common.core.mode.entity.SystemPermissions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SystemPermissionsMapper
 */
@Mapper
public interface SystemPermissionsMapper {

    /**
     * 查询所有权限列表
     */
    List<SystemPermissions> queryAll();

    /**
     * 根据用户ID查询权限
     */
    List<Long> queryIdListPermByUserId(@Param("userId") Long userId);

}